package cn.com.lyj6851.sso.client.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SsoClient2Controller {
	
    @GetMapping("user")
    public Authentication user(Authentication user) {
        return user;
    }
    
    @GetMapping("resource")
    public String openStr() {
    	return "开放的路径!";
    }
    
    @GetMapping("private")
    public String priStr() {
    	return "需要认证后才可以访问!";
    }
}
